#classroom {
  background: url('../../assets/images/background.png') no-repeat center;
  background-size: cover;
  padding: 0.5rem;
  box-sizing: border-box;
  display: grid;
  grid-template-areas:
    'title title title title'
    'students students students students'
    'board board board teacher'
    'board board board channel';
  grid-template-rows: 1.5rem 4rem 4fr 7fr;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 0.5rem;
  .title {
    grid-area: title;
    display: flex;
    justify-content: space-between;
    align-content: center;
    .status-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      span {
        margin: 0 1rem;
        color: #fff;
        // width: 7rem;
        // white-space: nowrap;
        // overflow: hidden;
        // text-overflow: ellipsis;
      }
    }
    #recordBtn {
      background-color: #ff4d89;
      border-radius: 0.9rem;
      padding: 0.2rem 1.5rem;
      height: auto;
      margin-right: 6px;
      &.disabled {
        color: #006edf;
        background-color: #e8f5fc;
      }
    }
  }
  .students-container {
    grid-area: students;
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    justify-items: center;
    align-items: center;
    .student-window {
      width: 3.5rem;
      height: 3.5rem;
      background: #000;
      overflow: hidden;
      border-radius: 0.25rem;
      border: 1px solid white;
      position: relative;
      .student-video {
        position: absolute;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
        display: flex;
        background: black;
      }
      .student-bar {
        position: absolute;
        bottom: 0;
        height: 1rem;
        display: flex;
        width: 100%;
        color: white;
        font-size: 0.5rem;
        align-items: flex-end;
        padding: 0.1rem 0.2rem;
        font-weight: 100;
      }
    }
  }
  .board-container {
    grid-area: board;
    position: relative;
    border-radius: 0.25rem;
    overflow: hidden;
    .pagination {
      position: absolute;
      left: 50%;
      bottom: 20px;
      z-index: 10;
      margin: 0 auto;
    }
    .float-button-group {
      display: flex;
      z-index: 30;
      flex-flow: column;
      position: absolute;
      bottom: 10px;
      right: 10px;
      width: 40px;
      justify-content: center;
      align-items: center;
    }
    .board-bar {
      width: 100%;
      position: absolute;
      bottom: 0;
      height: 3rem;
      // background: rgba(0, 0, 0, 0.27);
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #fff;
      &.btn {
        display: flex;
        align-items: center;
        cursor: pointer;
      }
      z-index: 99;
    }
    .board {
      width: calc(100% - 50px);
      height: 100%;
      margin-left: 50px;
      position: relative;
      background-color: #fff;
    }
    .board-mask {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      position: absolute;
      z-index: 20;
      cursor: not-allowed;
    }
  }
  .teacher-container {
    grid-area: teacher;
    position: relative;
    .teacher-window {
      height: 100%;
      width: 100%;
    }
  }
  .channel-container {
    grid-area: channel;
    border-radius: 0.25rem;
    overflow: hidden;
    .channel {
      height: 100%;
      background: #fff;

      .channel-header {
        background: #e8f5fc;
        color: #0398e7;
        height: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.6rem;
      }

      .channel-box {
        height: calc(100% - 3.5rem);
        overflow-y: auto;
        scroll-behavior: smooth;
      }

      .channel-input {
        height: 2rem;
        display: flex;
        align-items: center;
        padding: 0.25rem;
        #sendBtn {
          margin-left: 0.5rem;
        }
      }
    }
  }
  .message-item.left {
    .message-content {
      background-color: #f3f4f5;
    }

    .arrow {
      border-right-width: 0.3rem;
      border-right-style: solid;
      border-right-color: #f3f4f5;
      margin-left: 2%;
    }
    .message-sender {
      padding-left: 1rem;
    }
  }
  .message-item.right {
    .message-content {
      background-color: #7ed321;
    }

    .arrow {
      border-left-width: 0.3rem;
      border-left-style: solid;
      border-left-color: #7ed321;
      margin-right: 2%;
    }
    .message-sender {
      padding-right: 1rem;
    }
  }
  .message-item.right {
  }
  .message-item {
    margin: 0.5rem 0rem;
    clear: both;
    .message-content {
      color: #333333;
      font-size: 13px;
      font-weight: 600;
      padding: 0.5rem 0.75rem;
      border-radius: 0.25rem;
      position: relative;
      max-width: 80%;
      word-wrap: break-word;
    }
    .message-sender {
      clear: both;
      font-size: 0.45rem;
      color: rgba(0, 0, 0, 0.4);
    }
    .arrow {
      position: relative;
      width: 0px;
      height: 0px;
      border-top: 0.3rem solid transparent;
      border-bottom: 0.3rem solid transparent;
      margin-top: 0.6rem;
    }
  }
  .loader {
    position: absolute;
    display: none;
  }
  .loader.loading {
    display: inline-block;
  }
}
